<template>
	<div class="unit">
		<el-descriptions :column="2">
			<el-descriptions-item label="管理类专家人数:">{{ message?.extractionMode?.expertManagerCount }}</el-descriptions-item>
			<el-descriptions-item label="技术类专家人数:">{{ message?.extractionMode?.expertTechnologyCount }}</el-descriptions-item>
			<el-descriptions-item label="所需行业领域:">{{
				dictionary.expertIndustryFields(message?.extractionMode?.expertIndustryFields)
			}}</el-descriptions-item>
			<el-descriptions-item label="所需专业领域:">{{
				dictionary.expertProfessionalFields(message?.extractionMode?.expertProfessionalFields)
			}}</el-descriptions-item>
			<el-descriptions-item :span="2" label="回避单位:">{{ message?.extractionMode?.expertAvoidanceUnits?.join(',') }}</el-descriptions-item>
		</el-descriptions>
		<div style="color: black">
			本次项目回避单位{{ message?.extractionMode?.expertAvoidanceUnits?.length }}家，回避专家{{
				message?.extractionMode?.expertAvoidanceList?.length
			}}人
		</div>
	</div>
</template>

<script lang="ts" setup>
import { toRefs, defineProps } from 'vue';
import dictionary from '/@/views/expertDatabase/evaluate/dictionary';

const props = defineProps({
	message: {
		type: Object,
		default: () => {
			return {};
		},
	},
});

const { message } = toRefs(props);
</script>

<style lang="scss" scoped>
.unit {
	padding: 20px;
	background-color: #fff;
}
:deep(.el-descriptions__label) {
	width: 15% !important;
}
</style>
